package com.ed100.sass.patter.memento;

public class Test {

	public static void main(String[] args) {
		Original original = new Original("aaa");
		
		Storage storage = new Storage(original.createMemento());
	
		System.out.println("原始状态：" + original.getValue());
		
		original.setValue("bbbb");
		
		System.out.println("改变过的状态：" + original.getValue());
		original.restoreMemento(storage.getMemento());
		
		System.out.println("恢复的状态值:" + original.getValue());
	}

}
